package com.yuanfeng.business.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yuanfeng.business.dto.ShopNavDTO;
import com.yuanfeng.business.entity.ShopNavEntity;
import com.yuanfeng.commoms.dto.shop.MerchantShopNavQueryDTO;
import com.yuanfeng.commoms.vo.shop.GdbMerchantShopNavQueryVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ShopNavMapper extends BaseMapper<ShopNavEntity> {


    /**
     * 根据条件查询店铺导航栏
     *
     * @param shopId
     * @return
     */
    List<MerchantShopNavQueryDTO> selectShopNav(@Param("shopId") Integer shopId);

    /**
     * 查询店铺导航
     * @param shopId
     * @return
     */
    List<GdbMerchantShopNavQueryVO> selectShopNavByShopId(@Param("shopId")Integer shopId);

    /**
     * 查询店铺导航
     * @param shopId
     * @return
     */
    List<MerchantShopNavQueryDTO> queryshopNav(@Param("shopId")String shopId);


    /**
     * 店铺导航添加或更新
     * @param record
     * @return
     */
    int insertSelective(ShopNavDTO record);


    /**
     * 店铺导航更新
     * @param record
     * @return
     */
    int updateByPrimaryKeySelective(ShopNavDTO record);
}
